export const STATUS_ENUMS = {
    true: '启用',
    false: '停用',
};

export const STATUS_OPTIONS = () =>
    Object.entries(STATUS_ENUMS).map(([key, label]) => ({
        label,
        value: JSON.parse(key),
    }));

export const HOLIDAY_TYPE_ENUMS = {
    0: '法定节日',
    1: '公司节日',
};

export const HOLIDAY_TYPE_OPTIONS = () =>
    Object.entries(HOLIDAY_TYPE_ENUMS).map(([key, label]) => ({
        label,
        value: JSON.parse(key),
    }));

export const WORKDAY_TYPE_ENUMS = {
    0: '法定工作日',
    1: '公司工作日',
};

export const WORKDAY_TYPE_OPTIONS = () =>
    Object.entries(WORKDAY_TYPE_ENUMS).map(([key, label]) => ({
        label,
        value: JSON.parse(key),
    }));